package com.zzw.thread.communicate;

import java.io.PipedOutputStream;

/**
 * @author zzw
 * @see
 * @since 2018/3/27
 */
public class ThreadWrite extends Thread {

    private WriteData write;

    private PipedOutputStream out;

    public ThreadWrite(WriteData write, PipedOutputStream out) {
        super();
        this.write = write;
        this.out = out;
    }

    @Override
    public void run() {
        write.writeMethod(out);
    }

}
